﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="UserViews.aspx.vb" Inherits="hotels.UserViews" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="HotelFKID" HeaderText="HotelFKID" 
                    SortExpression="HotelFKID" />
                <asp:BoundField DataField="TravellerName" HeaderText="TravellerName" 
                    SortExpression="TravellerName" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:hotelsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:hotelsConnectionString.ProviderName %>" 
            SelectCommand="SELECT [HotelFKID], [TravellerName] FROM [HotelsViewedByUsers]">
        </asp:SqlDataSource>
        <br />
    </p>
</asp:Content>
